package com.health.platform.provider.symptommonitor.controller;

import com.health.platform.common.core.entity.CommonQueryEntity;
import com.health.platform.common.restful.AppResponse;
import com.health.platform.provider.symptommonitor.service.SymptomMonitorService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 病症监控-症候群监控分析（地方）Controller
 *
 * @author shi_xy_sr@neusiri.com
 * @date 2021/3/6 13:42
 */
@RestController
@RequestMapping("symptommonitor")
public class SymptomMonitorController {
    @Autowired
    private SymptomMonitorService symptomMonitorService;
    /**
     * 查询人群类别码表
     *
     * @param
     * @return 结果
     * @author shi_xy_sr@neusiri.com
     * @date 2021/3/6 14:17
     */
    @RequestMapping("/getDict")
    public AppResponse getDict() {
        return symptomMonitorService.getDict();
    }
    /**
     * 获取中间部分汇总信息 (就诊人次与同比、发热人次与同比、呼吸系统疾病就诊人次与同比、呼吸道症状就诊人次与同比)
     *
     * @param
     * @return 结果
     * @author shi_xy_sr@neusiri.com
     * @date 2021/3/6 14:41
     */
    @RequestMapping("/getSummaryInfo")
    public AppResponse getSummaryInfo(@RequestBody CommonQueryEntity symptomMonitorEntity){
        return symptomMonitorService.getSummaryInfo(symptomMonitorEntity);
    }
    /**
     * 获取疾病top(呼吸道疾病top10与上升top10、呼吸道症状top10)
     * 
     * @param 
     * @return 结果
     * @author shi_xy_sr@neusiri.com
     * @date 2021/3/8 9:10
     */
    @RequestMapping("/getDiseaseTopten")
    public AppResponse getDiseaseTopten(@RequestBody CommonQueryEntity symptomMonitorEntity){
        return symptomMonitorService.getDiseaseTopten(symptomMonitorEntity);
    }
    /**
     * 根据地点分组获得统计数据（全域呼吸道疾病就诊人次占比对比、全域症候群就诊人次占比对比）
     *
     * @param
     * @return 结果
     * @author shi_xy_sr@neusiri.com
     * @date 2021/3/9 8:50
     */
    @RequestMapping("/getDiseaseByArea")
    public AppResponse getDiseaseByArea(@RequestBody CommonQueryEntity symptomMonitorEntity){
        return symptomMonitorService.getDiseaseByArea(symptomMonitorEntity);
    }
    /**
     * 获得七日统计数据（呼吸道疾病近七日就诊趋势、近七日发热人次趋势）
     *
     * @param
     * @return 结果
     * @author shi_xy_sr@neusiri.com
     * @date 2021/3/10 14:34
     */
    @RequestMapping("/getDiseaseByDay")
    public AppResponse getDiseaseByWeek(@RequestBody CommonQueryEntity symptomMonitorEntity){
        return symptomMonitorService.getDiseaseByDay(symptomMonitorEntity);
    }
    /**
     * 症候群就诊近7日趋势
     * 
     * @param 
     * @return 结果
     * @author shi_xy_sr@neusiri.com
     * @date 2021/3/15 15:14
     */
    @RequestMapping("/getDiseaseByDayByDisease")
    public AppResponse getDiseaseByDayByDisease(@RequestBody CommonQueryEntity symptomMonitorEntity){
        return symptomMonitorService.getDiseaseByDayByDisease(symptomMonitorEntity);
    }
    /**
     * 哨点数据监测
     * 
     * @param 
     * @return 结果
     * @author shi_xy_sr@neusiri.com
     * @date 2021/3/15 15:57
     */
    @RequestMapping("/getDiseaseByCycle")
    public AppResponse getDiseaseByCycle(@RequestBody CommonQueryEntity symptomMonitorEntity){
        return symptomMonitorService.getDiseaseByCycle(symptomMonitorEntity);
    }
}
